Optimal. Leaf size=155 \[ \frac {a^{3/2} (11 A+24 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{8 d}+\frac {a^2 (19 A+24 C) \sin (c+d x)}{24 d \sqrt {a \sec (c+d x)+a}}+\frac {A \sin (c+d x) \cos ^2(c+d x) (a \sec (c+d x)+a)^{3/2}}{3 d}+\frac {a A \sin (c+d x) \cos (c+d x) \sqrt {a \sec (c+d x)+a}}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4087, 4017, 4015, 3774, 203} \[ \frac {a^2 (19 A+24 C) \sin (c+d x)}{24 d \sqrt {a \sec (c+d x)+a}}+\frac {a^{3/2} (11 A+24 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{8 d}+\frac {A \sin (c+d x) \cos ^2(c+d x) (a \sec (c+d x)+a)^{3/2}}{3 d}+\frac {a A \sin (c+d x) \cos (c+d x) \sqrt {a \sec (c+d x)+a}}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 3774
Rule 4015
Rule 4017
Rule 4087
Rubi steps
\begin {align*} \int \cos ^3(c+d x) (a+a \sec (c+d x))^{3/2} \left (A+C \sec ^2(c+d x)\right ) \, dx &=\frac {A \cos ^2(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \cos ^2(c+d x) (a+a \sec (c+d x))^{3/2} \left (\frac {3 a A}{2}+\frac {1}{2} a (A+6 C) \sec (c+d x)\right ) \, dx}{3 a}\\ &=\frac {a A \cos (c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {A \cos ^2(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {\int \cos (c+d x) \sqrt {a+a \sec (c+d x)} \left (\frac {1}{4} a^2 (19 A+24 C)+\frac {1}{4} a^2 (7 A+24 C) \sec (c+d x)\right ) \, dx}{6 a}\\ &=\frac {a^2 (19 A+24 C) \sin (c+d x)}{24 d \sqrt {a+a \sec (c+d x)}}+\frac {a A \cos (c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {A \cos ^2(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}+\frac {1}{16} (a (11 A+24 C)) \int \sqrt {a+a \sec (c+d x)} \, dx\\ &=\frac {a^2 (19 A+24 C) \sin (c+d x)}{24 d \sqrt {a+a \sec (c+d x)}}+\frac {a A \cos (c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {A \cos ^2(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}-\frac {\left (a^2 (11 A+24 C)\right ) \operatorname {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{8 d}\\ &=\frac {a^{3/2} (11 A+24 C) \tan ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{8 d}+\frac {a^2 (19 A+24 C) \sin (c+d x)}{24 d \sqrt {a+a \sec (c+d x)}}+\frac {a A \cos (c+d x) \sqrt {a+a \sec (c+d x)} \sin (c+d x)}{4 d}+\frac {A \cos ^2(c+d x) (a+a \sec (c+d x))^{3/2} \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.22, size = 118, normalized size = 0.76 \[ \frac {a \sin (c+d x) \sqrt {a (\sec (c+d x)+1)} \left (\cos (c+d x) \sqrt {\sec (c+d x)-1} (22 A \cos (c+d x)+4 A \cos (2 (c+d x))+37 A+24 C)+(33 A+72 C) \tan ^{-1}\left (\sqrt {\sec (c+d x)-1}\right )\right )}{24 d (\cos (c+d x)+1) \sqrt {\sec (c+d x)-1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 348, normalized size = 2.25 \[ \left [\frac {3 \, {\left ({\left (11 \, A + 24 \, C\right )} a \cos \left (d x + c\right ) + {\left (11 \, A + 24 \, C\right )} a\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) + 2 \, {\left (8 \, A a \cos \left (d x + c\right )^{3} + 22 \, A a \cos \left (d x + c\right )^{2} + 3 \, {\left (11 \, A + 8 \, C\right )} a \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{48 \, {\left (d \cos \left (d x + c\right ) + d\right )}}, -\frac {3 \, {\left ({\left (11 \, A + 24 \, C\right )} a \cos \left (d x + c\right ) + {\left (11 \, A + 24 \, C\right )} a\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - {\left (8 \, A a \cos \left (d x + c\right )^{3} + 22 \, A a \cos \left (d x + c\right )^{2} + 3 \, {\left (11 \, A + 8 \, C\right )} a \cos \left (d x + c\right )\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{24 \, {\left (d \cos \left (d x + c\right ) + d\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 6.23, size = 897, normalized size = 5.79 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 2.00, size = 570, normalized size = 3.68 \[ -\frac {\left (33 A \sqrt {2}\, \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+72 C \sqrt {2}\, \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+66 A \sqrt {2}\, \sin \left (d x +c \right ) \cos \left (d x +c \right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+144 C \sqrt {2}\, \sin \left (d x +c \right ) \cos \left (d x +c \right ) \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}}+33 A \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sqrt {2}\, \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sin \left (d x +c \right )+72 C \arctanh \left (\frac {\sqrt {-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \sqrt {2}}{2 \cos \left (d x +c \right )}\right ) \sqrt {2}\, \left (-\frac {2 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}\right )^{\frac {5}{2}} \sin \left (d x +c \right )+64 A \left (\cos ^{6}\left (d x +c \right )\right )+112 A \left (\cos ^{5}\left (d x +c \right )\right )+88 A \left (\cos ^{4}\left (d x +c \right )\right )+192 C \left (\cos ^{4}\left (d x +c \right )\right )-264 A \left (\cos ^{3}\left (d x +c \right )\right )-192 C \left (\cos ^{3}\left (d x +c \right )\right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, a}{192 d \sin \left (d x +c \right ) \cos \left (d x +c \right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\cos \left (c+d\,x\right )}^3\,\left (A+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )\,{\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________